//
//  WMNavigationViewController.m
//  Mink
//
//  Created by 周述坚 on 17/6/22.
//  Copyright © 2017年 周述坚. All rights reserved.
//

#import "WMNavigationViewController.h"

@interface WMNavigationViewController ()

@end

@implementation WMNavigationViewController

// 让状态栏变亮

- (UIStatusBarStyle)preferredStatusBarStyle{
    return UIStatusBarStyleLightContent;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupUI];
}

- (void)setupUI{
    // 让导航条不透明
    self.navigationBar.translucent = NO;
    
    // 设置字体颜色


}
// 跳转其他页面时,隐藏tabbar , 重新push方法
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{
    if (self.viewControllers.count > 0) {
        viewController.hidesBottomBarWhenPushed = YES;
        //设置返回item文字为返回
        viewController.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:nil action:nil];
    }
    [super pushViewController:viewController animated:animated];
}

@end
